import request from "@/utils/request";

// 获取订单列表
export function getorderList(data){
   return request({
    url:'/manager/order-manager/order/page',
    method:'post',
    data
    })
}

// 获取订单详情
export function gettorderDetail(id){
    return request({
     url:`/manager/order-manager/order/${id}`,
    })
 }

//编辑 更新订单
export function updatetorder(data) {
    return request({
      url: `/manager/order-manager/order/${data.id}`,
      method: 'put',
      data
    })
}
// 删除
export function deltorder(id) {
    return request({
      url: `/manager/order-manager/order/${id}`,
    })
}


// 获取省份列表
export function getprovinceList(parentId) {
    return request({
      url: `/manager/areas/children`,
      params:{parentId}
    })
  }